namespace MyBlog.DataEntity
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;

    public partial class Tbl_Article
    {
        public Tbl_Article()
        {
            Tbl_ArticleComment = new HashSet<Tbl_ArticleComment>();
            Tbl_Category = new HashSet<Tbl_Category>();
            Tbl_Tag = new HashSet<Tbl_Tag>();
        }

        public int ID { get; set; }

        [Required]
        [StringLength(20)]
        public string AccountId { get; set; }
        
        [Required]
        [StringLength(60)]
        public string Title { get; set; }

        [Required]
        public string Content { get; set; }

        public DateTime CreateTime { get; set; }

        public DateTime LastUpdateTime { get; set; }

        public bool IsTop { get; set; }

        public int ReadCount { get; set; }

        public string AgreeUsers { get; set; }

        public virtual Tbl_Account Tbl_Account { get; set; }

        public virtual ICollection<Tbl_Category> Tbl_Category { get; set; }

        public virtual ICollection<Tbl_ArticleComment> Tbl_ArticleComment { get; set; }

        public bool AllowComment { set; get; }

        public bool AllowAnonymous { set; get; }

        public bool AllowSendIndex { set; get; }

        public string Profile { set; get; }

        public virtual ICollection<Tbl_Tag> Tbl_Tag { set; get; }

        public bool PassToIndex { set; get; }
    }
}
